package cn.fhkj.entity;

public class RenqiuZfPublicityUnitType extends BaseEntity {
    /**
     * 
     * 表字段 : renqiu_zf_publicity_unit_type.id
     */
    private Long id;

    /**
     * 
     * 表字段 : renqiu_zf_publicity_unit_type.lv2_id
     */
    private Long lv2Id;

    /**
     * 
     * 表字段 : renqiu_zf_publicity_unit_type.unit_id
     */
    private Long unitId;

    /**
     * 
     * 表字段 : renqiu_zf_publicity_unit_type.url
     */
    private String url;

    /**
     * 获取  字段:renqiu_zf_publicity_unit_type.id
     *
     * @return renqiu_zf_publicity_unit_type.id, 
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置  字段:renqiu_zf_publicity_unit_type.id
     *
     * @param id the value for renqiu_zf_publicity_unit_type.id, 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取  字段:renqiu_zf_publicity_unit_type.lv2_id
     *
     * @return renqiu_zf_publicity_unit_type.lv2_id, 
     */
    public Long getLv2Id() {
        return lv2Id;
    }

    /**
     * 设置  字段:renqiu_zf_publicity_unit_type.lv2_id
     *
     * @param lv2Id the value for renqiu_zf_publicity_unit_type.lv2_id, 
     */
    public void setLv2Id(Long lv2Id) {
        this.lv2Id = lv2Id;
    }

    /**
     * 获取  字段:renqiu_zf_publicity_unit_type.unit_id
     *
     * @return renqiu_zf_publicity_unit_type.unit_id, 
     */
    public Long getUnitId() {
        return unitId;
    }

    /**
     * 设置  字段:renqiu_zf_publicity_unit_type.unit_id
     *
     * @param unitId the value for renqiu_zf_publicity_unit_type.unit_id, 
     */
    public void setUnitId(Long unitId) {
        this.unitId = unitId;
    }

    /**
     * 获取  字段:renqiu_zf_publicity_unit_type.url
     *
     * @return renqiu_zf_publicity_unit_type.url, 
     */
    public String getUrl() {
        return url;
    }

    /**
     * 设置  字段:renqiu_zf_publicity_unit_type.url
     *
     * @param url the value for renqiu_zf_publicity_unit_type.url, 
     */
    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    /**
     * ,renqiu_zf_publicity_unit_type
     *
     * @param that
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RenqiuZfPublicityUnitType other = (RenqiuZfPublicityUnitType) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getLv2Id() == null ? other.getLv2Id() == null : this.getLv2Id().equals(other.getLv2Id()))
            && (this.getUnitId() == null ? other.getUnitId() == null : this.getUnitId().equals(other.getUnitId()))
            && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()));
    }

    /**
     * ,renqiu_zf_publicity_unit_type
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getLv2Id() == null) ? 0 : getLv2Id().hashCode());
        result = prime * result + ((getUnitId() == null) ? 0 : getUnitId().hashCode());
        result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
        return result;
    }
}